﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Setting_lic : System.Web.UI.Page
{
	protected string cam = "", tip = "";
	protected bool hasLic = false;
	LogicLayer mgr = new LogicLayer();

    protected void Page_Load(object sender, EventArgs e)
    {
		if (IsPostBack)
		{
			if (!string.IsNullOrEmpty(Request.Form["licKey"]))
			{
				if (!mgr.SubmitLicense(Request.Form["licKey"]))
					tip = "校验失败!";
			}
		}
		cam = mgr.GetCam();
		hasLic = mgr.VerifyLicense();
    }
}